<template>
  <div class="search">
    <div class="top">
      <div>中国移动</div>
      <div>{{date|dateFilter}}</div>
    </div>
    <div class="centers">
      <div>饿了么</div>
      <div class="point">...@</div>
    </div>
    <input type="text" placeholder="输入商家，搜素名称">
  </div>
</template>

<script>
export default {
  data() {
    return {
      date:new Date(),
    }
  },
  filters: {
    dateFilter(date){
      return date.getHours() + ':' + date.getMinutes();
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
.search{
      background-color: rgb(33, 139, 181);
    }
.top{
  display: flex;
  justify-content: space-between;
  margin: 4px;
}
  .centers{
  display: flex;
  justify-content: space-between;
  margin: 2px ;
}
 .point{
  border-radius: 40px;
  background-color: rgba(133, 134, 136, 0.5);
  font-size: 20px;
  text-indent: 10px;
}
input{
  text-align: center;
  outline: none;
  border-radius: 40px;
  background-color: white;
  width: 95%;
  margin: 5px 2.5%;
  border: none;
  height: 30px;
}
</style>
